<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:icecore="http://www.icefaces.org/icefaces/core"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title><h:form><h:outputText>Mails verschicken</h:outputText></h:form></title>
    </h:head>
    <h:body>
        <ui:composition template="WEB-INF/templates/lecture.xhtml">
            <ui:define name="content">
                <h:form id="form2">                                       
                    <ice:outputText value="Mail Verschicken" />
                    <br />
                    <br />
                    <ice:outputText value="Betreff" />
                    <br />
                    <ice:inputText value="#{sendMailBean.subject}" />
                    <br />
                    <br />
                    <ice:outputText value="Empfänger" />
                    <br />
                    <ice:selectOneMenu value="#{sendMailBean.modus}">                       
                        <f:selectItems value="#{sendMailBean.items}" />
                    </ice:selectOneMenu>
                   <br />
                    <ice:selectManyListbox value="#{sendMailBean.choosenGroups}"
                                           rendered="#{!sendMailBean.set}">
                        <f:selectItems value="#{sendMailBean.groups}" />
                    </ice:selectManyListbox>
                   
                   <ice:outputText value="Text" />
                   <ice:inputTextarea value="#{sendMailBean.messageText}" />
                   <br />
                   <br />
                   <ice:commandButton value="Abschicken"
                                      action="#{sendMailBean.send()}" />
                        
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
